package com.hanhai;


import java.util.*;

public class Main {
    public static void main(String[] args) {

        StringBuffer stringBuffer = new StringBuffer();
        long l3 = System.currentTimeMillis();
        for (int i = 0; i < 1000000; i++) {
            stringBuffer.append(i);
        }
        long l4 = System.currentTimeMillis();
        System.out.println(l4-l3);
        String num = "";
        long l1 = System.currentTimeMillis();
        for (int i = 0; i < 1000000; i++) {
            num += i;
        }
        long l2 = System.currentTimeMillis();


        System.out.println(l2-l1);

    }
}